<?php
// $Id: results.tpl.php,v 1.5 2007/10/11 09:51:29 goba Exp $
global $base_url;
   
	//print "<pre>";print_r($results);print"</pre>";
	//print $nid;
?>
<div id="node">

<?php //if ($page == 0): ?>
  <h2 style="color:#137CB6"><?php print t($results[$nid]->field_profile_position['und']['0']['value']); ?></h2>
<?php //endif; ?>
<div >
	<div class="profile_form_div" style="border-bottom:none" >
	<p class="profile_form"><img src="<?php print 'http://cms.tn.gov.in/tncms_latest/sites/default/files/profile/'.$results[$nid]->field_profile_photo['und']['0']['filename']; ?>" align="middle" /></p>
	<p style="font-weight:bold; padding-top:40px;margin-left:200px;"><?php print $results[$nid]->title.'<br>';print $results[$nid]->field_profile_designation['und']['0']['value'] ?></p>
	
	</div> <div class="clr"></div>
	<?php if($results[$nid]->field_profile_assumed['und']['0']['value']!=''  ) {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Assumed Office On');?></p><p id="profile_form">
		<?php print date("F d,Y",strtotime($results[$nid]->field_profile_assumed['und']['0']['value']));?></p>
		</div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_father['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Fathers Name');?></p><p id="profile_form"><?php print  $results[$nid]->field_profile_father['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_mother['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Mothers Name');?></p><p id="profile_form"><?php print $results[$nid]->field_profile_mother['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_dob['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Date of Birth'); ?></p><p id="profile_form"><?php print date("F d,Y",strtotime($results[$nid]->field_profile_dob));?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_birth['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Birth Place');?></p><p id="profile_form"><?php print $results[$nid]->field_profile_birth['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_educatione['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Education');?></p><p id="profile_form"><?php print $results[$nid]->field_profile_educatione['und']['0']['value']?></p></div> <div class="clr"></div>
	<?php } ?>

	<?php if($results[$nid]->field_profile_status['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Marital Status');?></p><p id="profile_form"><?php print $results[$nid]->field_profile_status['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_child['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Children');?></p><p id="profile_form"><?php print $results[$nid]->field_profile_child['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_profession['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Profession');?></p><p id="profile_form"><?php print $results[$nid]->field_profile_profession['und']['0']['value']?></p></div> <div class="clr"></div>
	<?php } ?>
<?php  if($results[$nid]->field_profile_career['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php if(($results[$nid]->field_profile_position['und']['0']['value']!='Chief Justice')) {?> <?php echo t('Political Career ');?><?php } ?> <?php if(($results[$nid]->field_profile_position['und']['0']['value']=='Chief Justice')) {?><?php echo t('Professional Practices');?> <?php } ?></p><p id="profile_form">
		<?php print $results[$nid]->field_profile_career['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_award['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Award & Titles conferred');?></p><p id="profile_form"><?php print $results[$nid]->field_profile_award['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_foreign['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Foreign Travels');?><p id="profile_form"><?php print $results[$nid]->field_profile_foreign['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_hobbies['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Hobbies');?></p><p id="profile_form"><?php print $results[$nid]->field_profile_hobbies['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_publication['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Publications / Contributions');?></p><p id="profile_form"><?php print $results[$nid]->field_profile_publication['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_activities['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Public, Social  &amp; Cultural Activities');?></p><p id="profile_form"><?php print $results[$nid]->field_profile_activities['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_contact['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Contact Address');?></p><p id="profile_form"><?php print $results[$nid]->field_profile_contact['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>

	
		<?php if($results[$nid]->field_pro_phone1_code['und']['0']['value'] || ($results[$nid]->field_pro_phone2_code['und']['0']['value'])) {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Contact Number');?></p><p id="profile_form"><?php print $results[arg(2)]->field_pro_phone1_code['und']['0']['value'];?>&nbsp;<?php print $results[arg(2)]->field_profile_phone['und']['0']['value']; ?>&nbsp;,&nbsp;
		<?php print $results->field_pro_phone2_code;?>&nbsp;<?php print $results[$nid]->field_pro_phone2_code['und']['0']['value'];?>
		</p></div> <div class="clr"></div>
	<?php } ?>
	<!--<?php// if($results->field_pro_phone2_code[0]['view']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" >Contact Number</p><p id="profile_form"><?php// print $results->field_pro_phone2_code[0]['view'];?>&nbsp;<?php// print $results->field_pro_phone2[0]['view'];?></p></div> <div class="clr"></div>
	<?php// } ?>-->
	
		<?php if($results[$nid]->field_profile_fax['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Fax');?></p><p id="profile_form"><?php print  $results[$nid]->field_pro_fax_code['und']['0']['value']?> &nbsp;<?php print $results[$nid]->field_profile_fax['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>
	
		<?php if($results[$nid]->field_profile_url['und']['0']['value']) {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Website URL');?></p><p id="profile_form">
		<?php $filepath=$results[$nid]->field_profile_url['und']['0']['value'];?>
	<a href='javascript:void(0);' onClick='return tnportal_ext_window("<?php echo $filepath;?>");'><?php echo $filepath;?></a>
		</p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_email['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Email');?></p><p id="profile_form"><?php print $results[$nid]->field_profile_email['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($results[$nid]->field_profile_addinfo['und']['0']['value']!='') {?> 
		<div class="profile_form_div"><p class="profile_form" ><?php echo t('Additional Information');?></p><p id="profile_form"><?php print $results[$nid]->field_profile_addinfo['und']['0']['value'];?></p></div> <div class="clr"></div>
	<?php } ?>

</div>


  <div class="clear-block">
    <div class="meta">
	
   <!-- < ?php if ($taxonomy): ?>
      <div class="terms"><b>Keywords :</b>
	  < ?php print $terms ?></div>
    < ?php endif;?>-->
	
    </div>

  </div>

</div>


